<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script>
function setText()
{
	var oTxt=document.getElementById('txt1');
	
	oTxt.title='abcddfdasfe';
}
</script>
</head>

<body>
<input id="txt1" type="text" />
<input type="button" value="改文字" onclick="setText()" />
</body>
</html>
